﻿package isoengine.events {	import bubbletools.core.eventing.*;	import isoengine.events.*;	import isoengine.gameplay.gameobjects.WorldObject;	import isoengine.graphics.InteractiveGameObject;	public class GameEventManager implements EventsInterface {		private static var _instance:GameEventManager = null;		public static function instance():GameEventManager {			if (GameEventManager._instance == null) {				GameEventManager._instance = new GameEventManager();			}			return GameEventManager._instance;		}		public function createEvent(name:String, info:Object, EventType:Class):IEvent {			var newEvent:IEvent = EventManager.instance().createEvent(name, info, EventType);			return (newEvent);		}		public function createGameEvent(name:String, object:WorldObject):GameEvent {			var info:Object = new Object();			info["target"] = object;			var newEvent:IEvent = createEvent(name, info, GameEvent);			return (GameEvent(newEvent));		}	}}